<?php
include_once "src/controller/fravimanagement/UserManager.php";
sleep(1);
try {
    if (UserManager::addEmailToNotificationList($_POST["email"])) {
        echo "1";
    } else {
        echo "0";
    }
} catch (Exception $e) {
    echo $e->getMessage();
}
?>
